package com.yy.chapter7.service;

import com.yy.chapter7.vo.User;

import java.util.List;

/**
 * @author yangyao
 * @Description: UserService
 * @date 2018/10/24 09:18
 */
public interface UserService {

    /**
     * 根于用户名查询User
     * @param userName
     * @return
     * @throws Exception
     */
    public User findByUserName(String userName) throws Exception;


    /**
     * 查询所有
     * @return
     */
    public List<User> findAll() throws Exception;
}
